﻿using CXW.Core;
using CXW.Core.Sharp;

namespace Test.SysManage
{
    internal class TestUserControlViewContent : AbstractViewContent
    {
        TestUserControl vc = null;
        public override object Control
        {
            get
            {
                if (vc == null || vc.IsDisposed)
                {
                    vc = new TestUserControl();
                }

                return vc;
            }
        }
        protected override void OnLanguageChanged()
        {
            vc.labelControl2.Text = System.DateTime.Now.ToString("HH:mm:ss.ffff") + vc.labelControl1.Text;
            vc.labelControl1.Text = System.DateTime.Now.ToString("HH:mm:ss.ffff") + "|测试文字:" + ResourceService.GetString("Info.CaptionError");
            LoggingService.Info("TestUserControlViewContent OnLanguageChanged");
        }
    }
}